const mongoose = require('mongoose')

const userSchema = mongoose.Schema({
  username: { type: String, default: "" }, //账号
  password: String, // 密码-MD5
  phone: { type: String, default: "" }, // 手机号
  email: { type: String, default: "" }, // 邮箱
  profile: { type: String, default: "" }, // 头像
  auth: { type: String, default: 2 }, // 权限
})

const userModel = mongoose.model('appUsers', userSchema);

module.exports = {
  userModel
}